<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                template="embed/template.xhtml">
                
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <ui:define name="topnav">
            <ui:include src="/embed/menu.xhtml">
                <ui:param name="page" value="home" />
            </ui:include>
   </ui:define> 
   
    <ui:define name="sidebar">
       <!--  <ui:include src="/login/login.xhtml" />-->
   </ui:define>
   <ui:define name="search">   
       <ui:include src="/embed/search.xhtml" />
    </ui:define>

        
       <ui:define name="body"> 
		 <div class="productbox" >
            <h1>您的订单信息如下：</h1>	
            <h:form>
              <f:subview id="sentInfo">	
              
                    <h:column>
					<div class="formRow">
					<h:outputLabel >收货人姓名：</h:outputLabel> 
					<h:outputText value="#{newAddress.signName}"/>
					<br />
					
					<h:outputLabel for="province">省份/直辖市：</h:outputLabel> 
					<h:outputText value="#{newAddress.province}"/>
					<br />
					
                    <h:outputLabel for="address">详细地址：</h:outputLabel> 
					<h:outputText value="#{newAddress.detailAddress}"/>
					<br />

                    <h:outputLabel for="zipcode">邮政编码：</h:outputLabel> 
					<h:outputText value="#{newAddress.zipcode}"/>		
					<br />  
                    
                    <h:outputLabel for="telephone">手机号码：</h:outputLabel> 
                    <h:outputText value="#{newAddress.telephone}"/>
					<br />
					
					<h:outputLabel for="sentstyle">送货方式：</h:outputLabel> 
                    <h:outputText value="#{newAddress.sentStyle}"/>
					<br />
					
					<h:outputLabel for="senttime">送货时间：</h:outputLabel> 
                    <h:outputText value="#{newAddress.sentTime}"/>
					<br />
					
					<h:outputLabel for="senttime">运费：</h:outputLabel> 
				    <h:outputText value="#{currentOrder.sentprice}"/>
				    <h:outputLabel>元</h:outputLabel>
					</div>
                    </h:column>
			 
			     <br />
			     <br />
			     <br />

			    <f:subview id="orderdetail" rendered="#{currentOrder != null}">
			    <h1>您所订购的商品信息如下：</h1>	
                <h:form>
                    <h:dataTable value="#{currentOrder.orderitems}" var="line"
                                 styleClass="dvdtable" 
                                 headerClass="dvdtablehead"
                                 rowClasses="dvdtableodd,dvdtableeven"
                                 columnClasses="dvdtablecol">
                                               
                        <h:column>
                        <div>
                        <img src="#{line.product.pictureUrl}" pic="#{line.product.pictureUrl}" width="350" height="300"/>
                        </div>
                        
                        <div>
                            <h:outputText value="#{messages.cartColorColumn}" />
                                 ：
                            <h:outputText value="#{line.product.color}"/>
                        </div>
                        
                        <div>
                            <h:outputText value="#{messages.cartSizeColumn}" />        
                                  ：
                            <h:outputText value="#{line.product.size}"/>
                        </div>
                        
                        <div>
                            <h:outputText value="#{messages.cartPriceColumn}" />
                                 ：
                            <h:outputText value="#{line.product.price}">
                                <f:convertNumber type="currency" currencySymbol="￥" />
                            </h:outputText>
                        </div>
                        
                        <div>
                            <h:outputText value="#{messages.cartQuantityColumn}" />
                                  ：
                            <h:outputText value="#{line.itemNumber}"/>
                        </div>
                        
                        </h:column>                        
                    </h:dataTable>
                    <h:commandButton action="purchase" value="提交订单" />
                </h:form>
                </f:subview> 
                 
                 <br />   
                 <br />  
                 <br /> 

		       </f:subview> 
		    
		  </h:form>
	    </div>								
	  </ui:define>
    </ui:composition>





